package com.ruoyi.project.jiaqin.answer.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Date;

/**
 * 回答对象 jiaqin_answer
 *
 * @author admin
 * @date 2020-12-30
 */
public class JiaqinAnswer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 回答人 */
    @Excel(name = "回答人")
    private String memberId;
    private String memberName;
    private String memberIcon;

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getMemberIcon() {
        return memberIcon;
    }

    public void setMemberIcon(String memberIcon) {
        this.memberIcon = memberIcon;
    }

    /** 问题ID */
    @Excel(name = "问题ID")
    private String questionId;

    /** 问题 名*/
    private String questionName;

    public String getQuestionName() {
        return questionName;
    }

    public void setQuestionName(String questionName) {
        this.questionName = questionName;
    }

    /** 回答内容 */
    @Excel(name = "回答内容")
    private String content;
    /** 点赞数 */
    @Excel(name = "点赞数")
    private Long likes;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private Long views;

    @Excel(name = "回答时间")
    private Date releaseDate;

    /** 回复量 */
    private Integer replyNum;

    /** 是否是企业：0-否 1-是 */
    private Integer isCompany;

    public Integer getIsCompany() {
        return isCompany;
    }

    public void setIsCompany(Integer isCompany) {
        this.isCompany = isCompany;
    }

    public Integer getReplyNum() {
        return replyNum;
    }

    public void setReplyNum(Integer replyNum) {
        this.replyNum = replyNum;
    }

    public Date getReleaseDate() {
        return releaseDate;
    }

    public void setReleaseDate(Date releaseDate) {
        this.releaseDate = releaseDate;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setMemberId(String memberId)
    {
        this.memberId = memberId;
    }

    public String getMemberId()
    {
        return memberId;
    }
    public void setQuestionId(String questionId)
    {
        this.questionId = questionId;
    }

    public String getQuestionId()
    {
        return questionId;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setLikes(Long likes)
    {
        this.likes = likes;
    }

    public Long getLikes()
    {
        return likes;
    }
    public void setViews(Long views)
    {
        this.views = views;
    }

    public Long getViews()
    {
        return views;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("memberId", getMemberId())
            .append("questionId", getQuestionId())
            .append("content", getContent())
            .append("likes", getLikes())
            .append("views", getViews())
            .toString();
    }
}
